package com.boot.dao;

import com.boot.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 采购执行Dao
 */
@Mapper
public interface PurchaseApplyDao {

    List<Map<String, Object>> getPurchaseReleaseList(@Param("purchapplyStatus") String purchapplyStatus,@Param("documentNumber") String documentNumber,@Param("supplierName") String supplierName,@Param("companyId") Integer companyId);

    Map<String, Object> getPurchaseDetail(Integer tenderId);

    Map<String, Object> getTenderDetail(Integer tenderId);

    Map<String, Object> getPurchaseDetaiName(Integer tenderId);

    Map<String, Object> getTenderDetailName(Integer tenderId);

    Map<String, Object> getTenderCreateInfo(Integer tenderId);

    List<Map<String, Object>> getTenderAuditList(Integer tenderId);

    Map<String, Object> getCoalQualityMap(Integer tenderId);

    Boolean auditTender(TenderReview tenderReview);

    Boolean updateTenderStatus(@Param("tenderId") Integer tenderId, @Param("checkOpinion") String checkOpinion, @Param("operationTime") Long operationTime);

    List<Map<String, Object>> getTenderList(@Param("purchapplyStatus") String purchapplyStatus,@Param("documentNumber") String documentNumber,@Param("supplierName") String supplierName,@Param("companyId") Integer companyId);
}

